<template>
  <div class="service">
    <div class="sz-top">
      <van-icon class="sz-tui" name="arrow-left" @click="$router.push({name:'Mine'})" />
      <span>设置</span>
    </div>
    <van-cell-group>
      <van-cell title="个人资料" is-link to="/per"/>

      <van-cell title="绑定账号" value="手机微信等" is-link />
      <van-cell title="修改登录密码" is-link />
      <van-cell title="反馈建议" is-link />
      <van-cell title="推荐给朋友" value="当前版本6.2" is-link />
      <van-cell title="清除本地缓存" value="35.12MB" is-link />
      <div class="po-re">
        <van-cell class="wifi-van" title="WIFI下自动升级客户端" />
        <van-switch class="wifi-btn" v-model="checked" />
      </div>
      <div class="sz-show" @click="sztui" v-show="!isShow">退出登录</div>
      <div class="sz-show" @click="$router.push({name:'Login'})" v-show="isShow">去登录</div>
    </van-cell-group>
  </div>
</template>
<script>
export default {
  data() {
    return {
      checked: true,
      isShow: ""
    };
  },
  methods: {
    sztui() {
      this.isShow = localStorage.getItem("token");
      localStorage.clear();
      this.$toast("退出账号成功");
    }
  }
};
</script>
<style scoped>
@import "../css/shezhi.css";
</style>